﻿namespace HZY.Repository.Admin.Entities.Systems;

/// <summary>
/// 附件
/// </summary>
[Comment("附件")]
[TableName(NameRuleMode = NameRuleMode.TableName)]
public class SysFile : DefaultEntity
{
    /// <summary>
    /// 网络路径
    /// </summary>
    [Comment("网络路径")]
    public string? Url { get; set; }

    /// <summary>
    /// 文件名称
    /// </summary>
    [Comment("文件名称")]
    public string? FileName { get; set; }

    /// <summary>
    /// 文件原名
    /// </summary>
    [Comment("文件原名")]
    public string? OriginalName { get; set; }

    /// <summary>
    /// 文件大小
    /// </summary>
    [Comment("文件大小")]
    public string FileSize { get; set; } = string.Empty;

    /// <summary>
    /// 文件类型
    /// </summary>
    [Comment("文件类型")]
    public string? FileType { get; set; }

    /// <summary>
    /// mime类型
    /// </summary>
    [Comment("mime类型")]
    public string? MimeType { get; set; }

    /// <summary>
    /// 文件 Sha 编码
    /// </summary>
    [Comment("文件 Sha 编码")]
    public string? Sha { get; set; }

    /// <summary>
    /// 引用次数
    /// </summary>
    [Comment("引用次数")]
    public int Citations { get; set; } = 1;
}
